//导入request.js请求工具
import request from '@/utils/request.js'

// 获取分类名称
export const getCategoriesNamesService = () => {
    return request.get('/user/categories/getCategoriesNames')
}

// 获取剧本标签名称
export const getScriptTagNamesService = () => {
    return request.get('/user/TagsController/getScriptTagNames')
}

// 分页筛选获取剧本列表
export const getScriptsByFilterService = (filterData) => {
    return request.post('/user/scripts/page', filterData)
}

// 根据ID获取剧本详情
export const getUserScriptsByIdService = (id) => {
    return request.get(`/user/scripts/getUserScriptsById/${id}`)
}

